package com.zimmur.service.impl.order;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.zimmur.dao.order.IOrderCouponDao;
import com.zimmur.model.order.OrderCoupon;
import com.zimmur.service.order.IOrderCouponService;

@Service("orderCouponService")
public class OrderCouponServiceImpl implements IOrderCouponService{
	private static Logger log = LoggerFactory.getLogger(OrderCouponServiceImpl.class);

	@Resource
	private IOrderCouponDao orderCouponDao;
	@Override
	public int add(OrderCoupon orderCoupon) {
		int falg=0;
		try {
			falg = orderCouponDao.add(orderCoupon);
		} catch (Exception e) {
			log.error(e.getMessage(),e);
		}
		return falg;
	}
	

}
